package com.rmy.queue.mapper;

import java.util.List;
import com.rmy.queue.domain.QmsWindowBusiness;

/**
 * 窗口业务Mapper接口
 *
 * @author rmy
 * @date 2022-09-30
 */
public interface QmsWindowBusinessMapper
{
    /**
     * 查询窗口业务
     *
     * @param windowId 窗口业务主键
     * @return 窗口业务
     */
    public QmsWindowBusiness selectQmsWindowBusinessByWindowId(Long windowId);

    /**
     * 查询窗口业务列表
     *
     * @param qmsWindowBusiness 窗口业务
     * @return 窗口业务集合
     */
    public List<QmsWindowBusiness> selectQmsWindowBusinessList(QmsWindowBusiness qmsWindowBusiness);

    /**
     * 新增窗口业务
     *
     * @param qmsWindowBusiness 窗口业务
     * @return 结果
     */
    public int insertQmsWindowBusiness(QmsWindowBusiness qmsWindowBusiness);

    /**
     * 修改窗口业务
     *
     * @param qmsWindowBusiness 窗口业务
     * @return 结果
     */
    public int updateQmsWindowBusiness(QmsWindowBusiness qmsWindowBusiness);

    /**
     * 删除窗口业务
     *
     * @param windowId 窗口业务主键
     * @return 结果
     */
    public int deleteQmsWindowBusinessByWindowId(Long windowId);

    /**
     * 删除窗口业务
     *
     * @param qmsWindowBusiness 窗口ID和业务ID
     * @return 结果
     */
    public int deleteByWindowIdAndBusinessId(QmsWindowBusiness qmsWindowBusiness);

    /**
     * 批量删除窗口业务
     *
     * @param windowIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQmsWindowBusinessByWindowIds(Long[] windowIds);

    /**
     * 检验窗口是否绑定
     *
     * @param businessId 业务配置主键
     * @return 结果
     */
    public String checkWindowBusinessConfigLink(Long[] businessId);
}
